package com.cardone.platform.common.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import org.springframework.data.annotation.Transient;

import com.cardone.platform.common.po.OperateLog;

/**
 * 操作日志
 *
 * @author yaohaitao
 *
 */
@Getter
@Setter
@Accessors(chain = true)
public class OperateLogDto extends OperateLog {
	/**
	 * 操作日志
	 *
	 * @author yaohaitao
	 *
	 */
	public enum Attributes {

		/**
		 * 业务代码
		 */
		businessCode,

		/**
		 * 消息
		 */
		message,
	}

	/**
	 * 版本号
	 */
	@Transient
	private static final long serialVersionUID = 734135213360721579L;

	/**
	 * 操作日志
	 *
	 * @return 操作日志
	 */
	public static OperateLogDto newOperateLog() {
		return new OperateLogDto();
	}

	/**
	 * 字典.类别代码
	 */
	@Transient
	private String typeCode;

	/**
	 * 字典.类别名称
	 */
	@Transient
	private String typeName;

	/**
	 * 字典.类别类别代码
	 */
	@Transient
	private String typeTypeCode;
}